<table class="table table-condensed">
  <thead>
	<tr>
		<th>#</th>
		<th>Jabatan</th>
		<th>Nama Pegawai</th>									
		<th>Periode</th>						
		<th>Masa Jabatan</th>			
	</tr>
  </thead>
  <tbody>
	<?php
		$i =1; 
		foreach ($list as $row) {
	?>
	<tr class="hover t-hijau-dark">
		<td width="30"><?php echo $i++ ?></td>
		<td><?php echo $row->jabatan; ?></td>
		<td><?php echo $row->nama_lengkap; ?></td>									
		<td><?php echo date('d/m/Y', strtotime($row->mulai));?> <i class="fa fa-arrow-right"></i> <?php echo date('d/m/Y', strtotime($row->akhir));?></td>									
		<td>
			<?php echo selisihTgl($row->mulai,$row->akhir);?>
			<a onClick="edit_jabatan('<?php echo $row->id_a_jabatan;?>')" class="editorLink pull-right" data-reveal-id="editModal" nama="<?php echo $row->nama_lengkap; ?>" 2nd="<?php echo $row->jabatan; ?>" hpid="<?php echo $row->id_a_jabatan;?>" title="Edit Jabatan <?php echo $row->jabatan; ?>" data-reveal><span class="glyphicon glyphicon-edit"></span></a>
		</td> 
	</tr>
	<?php
		}
	?>

	<?php 
		$n = count($list)+1;
		foreach ($list_j as $rowj) {
	?>
	<tr class="hover">
		<td width="30"><?php echo $n++ ?></td>
		<td><?php echo $rowj->jabatan; ?></td>
		<td>Belum diatur</td>
		<td>Belum diatur</td>
		<td>
			Belum diatur
			<a onClick="atur_jabatan('<?php echo $rowj->id_m_jabatan;?>')" class="editorLink pull-right" data-reveal-id="aturModal" data-reveal title="Atur Jabatan <?php echo $rowj->jabatan; ?>"><span class="glyphicon glyphicon-cog"></span></a>
		</td>
	</tr>
	<?php
		}
	?>
  </tbody>
</table>